@echo off
echo 正在下载Spring依赖...

REM 创建lib目录
if not exist "lib" mkdir lib

REM 下载Spring核心依赖
echo 下载Spring Core...
powershell -Command "Invoke-WebRequest -Uri 'https://repo1.maven.org/maven2/org/springframework/spring-context/5.3.20/spring-context-5.3.20.jar' -OutFile 'lib/spring-context-5.3.20.jar'"

echo 下载Spring AOP...
powershell -Command "Invoke-WebRequest -Uri 'https://repo1.maven.org/maven2/org/springframework/spring-aop/5.3.20/spring-aop-5.3.20.jar' -OutFile 'lib/spring-aop-5.3.20.jar'"

echo 下载Spring Core...
powershell -Command "Invoke-WebRequest -Uri 'https://repo1.maven.org/maven2/org/springframework/spring-core/5.3.20/spring-core-5.3.20.jar' -OutFile 'lib/spring-core-5.3.20.jar'"

echo 下载Spring Beans...
powershell -Command "Invoke-WebRequest -Uri 'https://repo1.maven.org/maven2/org/springframework/spring-beans/5.3.20/spring-beans-5.3.20.jar' -OutFile 'lib/spring-beans-5.3.20.jar'"

echo 下载Spring Expression...
powershell -Command "Invoke-WebRequest -Uri 'https://repo1.maven.org/maven2/org/springframework/spring-expression/5.3.20/spring-expression-5.3.20.jar' -OutFile 'lib/spring-expression-5.3.20.jar'"

echo 下载AspectJ Runtime...
powershell -Command "Invoke-WebRequest -Uri 'https://repo1.maven.org/maven2/org/aspectj/aspectjrt/1.9.7/aspectjrt-1.9.7.jar' -OutFile 'lib/aspectjrt-1.9.7.jar'"

echo 下载AspectJ Weaver...
powershell -Command "Invoke-WebRequest -Uri 'https://repo1.maven.org/maven2/org/aspectj/aspectjweaver/1.9.7/aspectjweaver-1.9.7.jar' -OutFile 'lib/aspectjweaver-1.9.7.jar'"

echo 下载SLF4J API...
powershell -Command "Invoke-WebRequest -Uri 'https://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar' -OutFile 'lib/slf4j-api-1.7.36.jar'"

echo 下载Logback Classic...
powershell -Command "Invoke-WebRequest -Uri 'https://repo1.maven.org/maven2/ch/qos/logback/logback-classic/1.2.11/logback-classic-1.2.11.jar' -OutFile 'lib/logback-classic-1.2.11.jar'"

echo 下载Logback Core...
powershell -Command "Invoke-WebRequest -Uri 'https://repo1.maven.org/maven2/ch/qos/logback/logback-core/1.2.11/logback-core-1.2.11.jar' -OutFile 'lib/logback-core-1.2.11.jar'"

echo 下载Apache Commons Logging...
powershell -Command "Invoke-WebRequest -Uri 'https://repo1.maven.org/maven2/commons-logging/commons-logging/1.2/commons-logging-1.2.jar' -OutFile 'lib/commons-logging-1.2.jar'"

echo 依赖下载完成！
pause
